﻿namespace Polymorphism.Animals;

public interface IFlyable
{
    void Fly();
}


public class Bird:IFlyable
{
    public void Tweet() => Console.WriteLine("Tweet,tweet");
    public void Fly() => Console.WriteLine("Flying using this wings.");
}
    
public class Kite:IFlyable
{
    public void Fly() => Console.WriteLine("Flying carried by the wind.");
}
    
public class Plane:IFlyable
{
    public void Fly() => Console.WriteLine("Flying carried a lot of things.");
}

public class Animal
{
   
    
}